package com.dhcc.bpm.modules.orga.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.dhcc.bpm.modules.orga.entity.Userhome;
import com.dhcc.bpm.modules.orga.vo.UserhomeVO;
import org.springblade.core.mp.base.BaseService;

import java.util.List;

/**
 * @ClassName IUserhomeService
 * @Description 用户门户表 服务类
 * @Author daina
 * @Date 2020/2/24 19:25
 * @Version V1.0
 * @Copyright: 2020 东华软件 . All rights reserved.
 */
public interface IUserhomeService extends BaseService<Userhome> {

	/**
	 * @Description 自定义分页
	 * @Author daina
	 * @Date 10:19 2020/2/25
	 * @param page
	 * @param user
	 * @return com.baomidou.mybatisplus.core.metadata.IPage<com.dhcc.bpm.modules.orga.vo.UserhomeVO>
	 **/
	IPage<UserhomeVO> selectUserPage(IPage<UserhomeVO> page, UserhomeVO user);
	/**
	 * @Description 查询用户信息
	 * @Author daina
	 * @Date 10:20 2020/2/25
	 * @param page
	 * @param user
	 * @return com.baomidou.mybatisplus.core.metadata.IPage<com.dhcc.bpm.modules.orga.vo.UserhomeVO>
	 **/
	IPage<UserhomeVO> selectUserInfo(IPage<UserhomeVO> page, UserhomeVO user);

	/**
	 * @Description 查询用户列表
	 * @Author daina
	 * @Date 10:07 2020/3/14
	 * @param user
	 * @return java.util.List<com.dhcc.bpm.modules.orga.vo.UserhomeVO>
	 **/
	List<UserhomeVO> listUser(UserhomeVO user);

	/**
	 * @Description 根据手机号邮箱查询用户
	 * @Author xiafayu
	 * @Date 2021/3/5 18:09
	 * @param email
	 * @param phone
	 * @return com.dhcc.bpm.modules.orga.entity.Userhome
	 **/
	List<Userhome> findOpcUser(String email,String phone);

	List<Userhome> findOpcUserByEmailOrPhone(String email,String phone);


	IPage<UserhomeVO> listUserDev(IPage<UserhomeVO> page,UserhomeVO user);
}
